<cfif Not IsDefined("session.id")><!---not logged in--->
	<cflocation url="/ecada/index.cfm"/><!---redirect to home where they will be able to log in--->
</cfif>

<cfif Not IsDefined("g")><!---not logged in--->
	<cflocation url="/ecada/index.cfm"/><!---redirect to home where they will be able to log in--->
<cfelse>
	<cfquery datasource="exp" name="owner">
		SELECT ownerID
		FROM groups
		WHERE id = #g#
	</cfquery>

	<cfif session.id eq owner.ownerID>
		<cfoutput>Y</cfoutput>
	<cfelse>
		<cfoutput>N</cfoutput>
	</cfif>
</cfif>


